package com.meeruu.sg.account.core.domain.model;

import com.meeruu.sg.account.core.domain.model.base.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author yangqintao
 * @date 2019-05-16
 */

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "account_funds_flow")
public class AccountFundsFlowDO extends BaseDO {

    /**
     * 流水id
     */
    private String flowId;

    /**
     * 账户id
     */
    private String accountId;

    /**
     * 流水方向 0:支出 1:收入
     */
    private Integer flowDirect;

    /**
     * 流水业务类型
     */
    private Integer flowType;

    /**
     * 关联账户id
     */
    private String refAccountId;

    /**
     * 账户类型
     */
    private Integer accountType;

    /**
     * 金额
     */
    private BigDecimal flowAmount;

    /**
     * 日期
     */
    private Date applyDate;

    /**
     * 资金变动原因
     */
    private String flowReason;

    /**
     * 扩展字段
     */
    private String extendInfo;

}
